<?php
require_once '../lib/util.php';
require_once ('../lib/test.php');
require_once ('f:\wamp\www\simpletest\autorun.php');

class TestTemplate extends UnitTestCase {
    
    function setUp(){
    }
    
    //refer to http://www.simpletest.org/en/unit_test_documentation.html
    function testExistFromId(){
         
        trace($_SERVER);
        
        $regex = "/^.*\/(.*)\..*$/i";
        preg_match($regex, $_SERVER['SCRIPT_NAME'], $matches);
        
        
        
        trace($matches);
        $first = $matches[1];
        $second = "TestRegularExpression";
        $this->assertEqual($first, $second);
    }
}
?>